<?php

class m130831_074508_add_need_count_to_goods_table extends CDbMigration
{
	public function up()
	{
        $this->addColumn('{{goods}}', 'need_count', 'smallint NOT NULL');
	}

	public function down()
	{
        $this->removeColumn('{{goods}}', 'need_count');
		echo "m130831_074508_add_need_count_to_goods_table does not support migration down.\n";
		return true;
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}
